﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 错误消息
    /// 格式type@=error/code@=51/
    /// </summary>
    public class ErrorMessage : BaseMessage
    {
        public ErrorMessage(BaseMessage msg) : base(msg)
        {
        }
        
        /// <summary>
        /// 错误代码
        /// </summary>
        public int code {
            get { return GetValue(nameof(code), 0); }
        }

    }

}
